import { request } from "@/plugins/axios";
// import Axios from "axios";


export function list(data) {
    return request({
        url: '/backend/getservicelist',
        method: 'get',
        params: data
    })
}

export function cx(data) {
    return request({
        url: '/backend/cxServiceListByServiceName',
        method: 'get',
        params: data
    })
}

export function getservicelistlength() {
    return request({
        url: '/backend/getservicelistlength',
        method: 'get',
    })
}

export function add(data) {
    return request({
        url: '/backend/addService',
        method: 'get',
        params: data
    })
}



export function del(serviceid) {
    return request({
        url: '/backend/deleteService/' + serviceid,
        method: 'get',
    })
}



export function update(data) {
    return request({
        url: '/backend/updateserveice',
        method: 'get',
        params: data
    })

}

export function upload(formData) {
    return request({
        url: "/backend/uploadServiceImage",
        method: 'post',
        data: formData,
        headers: { "Content-Type": "multipart/form-data" }
    })

}